package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.github.talelin.latticy.model.OrderDO;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.vo.OrderSimplifyVO;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@TaleLin
 * @since 2021-06-20
 */
public interface OrderService extends IService<OrderDO> {

    IPage<OrderDO> getOrderByPage(Long page, Long count);
    List<OrderSimplifyVO> convertFromDO(List<OrderDO> orders);

    void changeOrderStatus(Long id, Integer status);

    IPage<OrderDO> search(Integer page, Integer count, String keyword, Date start, Date end);
}
